package com.dhcc.sds.standard.dao;

import java.util.List;
import java.util.Map;

import com.dhcc.core.framework.result.node.ZTreeNode;
import org.apache.ibatis.annotations.Param;
import com.dhcc.core.framework.base.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.sds.standard.entity.SdsStandDicsubEntity;

/**
 * 项目标准化字典子项
 * 
 * @ClassName: SdsStandDicsubMapper
 * @Description: TODO
 * @author sunyingjie
 * @date 2021-03-22 10:09:53
 */
public interface SdsStandDicsubMapper  extends BaseMapper<SdsStandDicsubEntity> {
	
    List<SdsStandDicsubEntity> list(@Param("map")Map<String, Object> map);
    List<SdsStandDicsubEntity> page(@Param("page") Page<SdsStandDicsubEntity> page,@Param("map")Map<String, Object> map);

    List<SdsStandDicsubEntity> pageByDic(@Param("page") Page<SdsStandDicsubEntity> page, @Param("map") Map<String, Object> params, @Param("ids") List<Long> ids);

    List<SdsStandDicsubEntity> listByDic(@Param("ids") List<Long> ids);

    List<ZTreeNode> tree(@Param("sourceCode") String sourceCode);

    List<ZTreeNode> treeAll();

    List<ZTreeNode> treeMedicInfo();

    List<ZTreeNode> treeKeyInfo();

    List<ZTreeNode> treeBySources(@Param("sources") List<String> list);

    SdsStandDicsubEntity selectByDicAndDicsubDesc(@Param("dicId") Long dicId, @Param("dicsubDesc") String dicsubDesc);
}
